﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Infancy.Core.Service {
    public class QueryTypeNotSupportException : Exception {
        public ExpressionType ErrorType { get; private set; }

        public QueryTypeNotSupportException(ExpressionType errorType, string message)
            : base(message) {
            ErrorType = errorType;
        }

        public QueryTypeNotSupportException(ExpressionType errorType, string message, Exception innserException)
            : base(message, innserException) {
            ErrorType = errorType;
        }
    }
}
